Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update test_util.cc for coverage #55291

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

kmk324
Copy link
Contributor

@kmk324 kmk324 commented Oct 6, 2024

test: update test_util.cc for code coverage

target file

  • src/util-inl.h

target function

  • T* ListHead<T, M>::PopFront()

AS-IS

image

TO-BE

image

update test_util.cc for code coverage src/util-inl.h:PopFront()
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Oct 6, 2024
@RedYetiDev
Copy link
Member

Why is this change important? IIRC the coverage of individual CPP functions isn't important, right?

@RedYetiDev RedYetiDev added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 6, 2024
@RedYetiDev RedYetiDev added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 7, 2024
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.42%. Comparing base (bbdfeeb) to head (2175661).
Report is 57 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #55291   +/-   ##
=======================================
  Coverage   88.41%   88.42%           
=======================================
  Files         652      652           
  Lines      186612   186612           
  Branches    36062    36058    -4     
=======================================
+ Hits       165001   165006    +5     
+ Misses      14885    14880    -5     
  Partials     6726     6726           

see 25 files with indirect coverage changes

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 7, 2024
@nodejs-github-bot
Copy link
Collaborator

@kmk324
Copy link
Contributor Author

kmk324 commented Oct 7, 2024

Why is this change important? IIRC the coverage of individual CPP functions isn't important, right?

Thank you for the comment! As you mentioned, I also think the coverage of individual cpp function is not important.
This is my first PR, I think this is a change for the better.
If you know any issue with this commit, please let me know.

@nodejs-github-bot
Copy link
Collaborator

@lpinca lpinca added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 14, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 14, 2024
@nodejs-github-bot nodejs-github-bot merged commit b579779 into nodejs:main Oct 14, 2024
76 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in b579779

marco-ippolito pushed a commit to marco-ippolito/node that referenced this pull request Oct 14, 2024
update test_util.cc for code coverage src/util-inl.h:PopFront()

PR-URL: nodejs#55291
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants